Optimal. Leaf size=32 \[ -2 \sqrt {x}+\frac {2 \left (a+b \sqrt {x}\right ) \log \left (a+b \sqrt {x}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2504, 2436,
2332} \begin {gather*} \frac {2 \left (a+b \sqrt {x}\right ) \log \left (a+b \sqrt {x}\right )}{b}-2 \sqrt {x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2332
Rule 2436
Rule 2504
Rubi steps
\begin {align*} \int \frac {\log \left (a+b \sqrt {x}\right )}{\sqrt {x}} \, dx &=2 \text {Subst}\left (\int \log (a+b x) \, dx,x,\sqrt {x}\right )\\ &=\frac {2 \text {Subst}\left (\int \log (x) \, dx,x,a+b \sqrt {x}\right )}{b}\\ &=-2 \sqrt {x}+\frac {2 \left (a+b \sqrt {x}\right ) \log \left (a+b \sqrt {x}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 33, normalized size = 1.03 \begin {gather*} 2 \left (-\sqrt {x}+\frac {\left (a+b \sqrt {x}\right ) \log \left (a+b \sqrt {x}\right )}{b}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 32, normalized size = 1.00
method | result | size |
derivativedivides | \(\frac {2 \left (a +b \sqrt {x}\right ) \ln \left (a +b \sqrt {x}\right )-2 b \sqrt {x}-2 a}{b}\) | \(32\) |
default | \(\frac {2 \left (a +b \sqrt {x}\right ) \ln \left (a +b \sqrt {x}\right )-2 b \sqrt {x}-2 a}{b}\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 31, normalized size = 0.97 \begin {gather*} \frac {2 \, {\left ({\left (b \sqrt {x} + a\right )} \log \left (b \sqrt {x} + a\right ) - b \sqrt {x} - a\right )}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 28, normalized size = 0.88 \begin {gather*} \frac {2 \, {\left ({\left (b \sqrt {x} + a\right )} \log \left (b \sqrt {x} + a\right ) - b \sqrt {x}\right )}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 133 vs.
\(2 (27) = 54\).
time = 0.24, size = 133, normalized size = 4.16 \begin {gather*} \begin {cases} \frac {2 a^{2} \log {\left (a + b \sqrt {x} \right )}}{a b + b^{2} \sqrt {x}} + \frac {2 a^{2}}{a b + b^{2} \sqrt {x}} + \frac {4 a b \sqrt {x} \log {\left (a + b \sqrt {x} \right )}}{a b + b^{2} \sqrt {x}} + \frac {2 b^{2} x \log {\left (a + b \sqrt {x} \right )}}{a b + b^{2} \sqrt {x}} - \frac {2 b^{2} x}{a b + b^{2} \sqrt {x}} & \text {for}\: b \neq 0 \\2 \sqrt {x} \log {\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.46, size = 31, normalized size = 0.97 \begin {gather*} \frac {2 \, {\left ({\left (b \sqrt {x} + a\right )} \log \left (b \sqrt {x} + a\right ) - b \sqrt {x} - a\right )}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.28, size = 33, normalized size = 1.03 \begin {gather*} 2\,\sqrt {x}\,\ln \left (a+b\,\sqrt {x}\right )-2\,\sqrt {x}+\frac {2\,a\,\ln \left (a+b\,\sqrt {x}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________